package _interview100;

/**
 * 283. 移动零
 */
public class No283 {
    public void moveZeroes(int[] nums) {
        int left = 0, right = 0;
        for (; right < nums.length; right++) {
            if (nums[right] != 0) {
                int temp = nums[left];
                nums[left++] = nums[right];
                nums[right] = temp;
            }
        }
    }
}
